package com.freedom.ums.member.application.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freedom.ums.member.infrastructure.persistence.pojo.bo.MemberBO;
import com.freedom.ums.member.infrastructure.persistence.pojo.vo.admin.AdminMemberPageVO;
import com.freedom.ums.api.member.pojo.dto.MemberAuthDTO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface MemberConverter {
    Page<AdminMemberPageVO> toPageVO(Page<MemberBO> resultPage);

    MemberAuthDTO toDTO(MemberBO memberBO);
}
